#include <stdio.h>

int cmp(int a,int b,int c)
{
    if ( (a!=b) && (a!=c) && (b!=c) )
    {
        printf("%d  %d  %d\n",a,b,c);
        return 0;
    }
    else
        return -1;
}

void main()
{
    int a,b,c;
    int num=0;
    printf("find diff num from 1-4!\n");
    printf("a  b  c\n");

    for (a=1;a<5;a++)
    {
        for (b=1;b<5;b++)
        {
           for(c=1;c<5;c++)
              if(cmp(a,b,c) == 0)
                     num++;
        }
    }    
    printf("total num=%d\n",num);
}
